using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._General
{
    /// <summary>
    /// <para>Analyze Tools For Pro</para>
    /// <para>Analyzes Python scripts and custom geoprocessing tools and toolboxes for functionality that is not supported in ArcGIS Pro.</para>
    /// <para>分析 Python 脚本以及自定义地理处理工具和工具箱，以查找 ArcGIS Pro 中不支持的功能。</para>
    /// </summary>    
    [DisplayName("Analyze Tools For Pro")]
    public class AnalyzeToolsForPro : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AnalyzeToolsForPro()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input">
        /// <para>Input</para>
        /// <para>The input can be a geoprocessing toolbox or Python file.</para>
        /// <para>输入可以是地理处理工具箱或 Python 文件。</para>
        /// </param>
        public AnalyzeToolsForPro(object _input)
        {
            this._input = _input;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Analyze Tools For Pro";

        public override string CallName => "management.AnalyzeToolsForPro";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input, _report];

        /// <summary>
        /// <para>Input</para>
        /// <para>The input can be a geoprocessing toolbox or Python file.</para>
        /// <para>输入可以是地理处理工具箱或 Python 文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para>An output text file that includes all issues.</para>
        /// <para>包含所有问题的输出文本文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _report { get; set; } = null;


        public AnalyzeToolsForPro SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}